The Fatah–Hamas Doha agreement was signed on 7 February 2012 by President Mahmoud Abbas and Hamas chief Khaled Meshal in the presence of Qatar's emir Sheikh Hamad bin Khalifa Al Thani, intended to end the Fatah–Hamas conflict. President Mahmoud Abbas would head a unity caretaker cabinet. The Cabinet would be composed of independent technocrats. The task of the new government would be the preparation for upcoming elections and also overseeing reconstruction efforts in the Gaza Strip. Abbas initially wanted Salam Fayyad as PM, but this was rejected by Hamas. Both parties considered PA Prime Minister Salam Fayyad and Hamas' Prime Minister Ismail Haniyeh to become Abbas' deputies.