The Turkish invasion, followed by occupation and the declaration of independence of the TRNC have been condemned by United Nations resolutions, which are reaffirmed by the Security Council every year. The last major effort to settle the Cyprus dispute was the Annan Plan in 2004, drafted by the then Secretary General, Kofi Annan. The plan was put to a referendum in both Northern Cyprus and the Republic of Cyprus. 65% of Turkish Cypriots voted in support of the plan and 74% Greek Cypriots voted against the plan, claiming that it disproportionately favoured the Turkish side. In total, 66.7% of the voters rejected the Annan Plan V. On 1 May 2004 Cyprus joined the European Union, together with nine other countries. Cyprus was accepted into the EU as a whole, although the EU legislation is suspended in the territory occupied by Turkey (TRNC), until a final settlement of the Cyprus problem. In July 2006, the island served as a haven for people fleeing Lebanon, due to the conflict between Israel and Hezbollah (also called "The July War").