The unstable situation and the war in neighbouring Afghanistan and Iraq prompted a rush of refugees into the country who arrived in their millions, with Tehran being a magnet for much seeking work, who subsequently helped the city to recover from war wounds, working for far less pay than local construction workers. Many of these refugees are being repatriated with the assistance of the UNHCR, but there are still sizable groups of Afghan and Iraqi refugees in Tehran who are reluctant to leave, being pessimistic about the situation in their own countries. Afghan refugees are mostly Dari-speaking Tajik and Hazara, speaking a variety of Persian, and Iraqi refugees are mainly Mesopotamian Arabic-speakers who are often of Iranian heritage.