In the meantime, al-Nasir decided against removing Hasan and ordered Baysaq to stand down. To Mecca he sent the messenger Fayruz al-Saqi bearing robes of honor and a decree dated 12 Dhu al-Qi'dah which reinstated Hasan, Barakat, and Ahmad to their offices. During this time, Ghiyathuddin Azam Shah, the Sultan of Bengal, commissioned some money in order to buy property for establishing and maintaining the two Ghiyathiyyah Madaris located in Makkah and Madinah - which were considered to be the best institutions in the region. An account of these can be found in the Tarikh Makkah (History of Makkah).. Azam Shah also sent a lot of money to repair the Arafat Stream. Hasan, however, decided to use the money given by the Sultan for another project instead. On 20 Jumada al-Thani 815 AH (c. 27 September 1412) Hasan and his sons received robes of honor and a letter from the new sultan, the Caliph Musta'in Billah. However, the mention of the Caliph's name in the "dua" and "khutbah" of Mecca was short-lived, for in Shawwal (January 1413) they received robes of honor and a letter from the new sultan, al-Mu'ayyad Abu al-Nasr Shaykh. On 14 Safar 818 AH (c. 25 April 1415) the Sultan issued a decree appointing Rumaythah ibn Muhammad ibn Ajlan as Vice Sultan in the Hejaz and Emir of Mecca in place of his uncle and cousins. Rumaythah received the decree 16 Rabi al-Awwal 818 AH (c. 26 May 1415), but the "du'a" in Mecca continued in the name of Hasan and his sons until Rumaythah entered Mecca in the beginning of Dhu al-Hijjah (February 1416). In Rajab 819 AH (September 1416) Hasan sent Barakat to Cairo to petition for his reappointment. Sultan al-Mu'ayyad responded to the entreaty and sent Hasan a robe of honor and a decree, dated 18 Ramadan 819 AH (c. 9 November 1416), returning him the Emirate of Mecca. He entered Mecca and was proclaimed Emir on Wednesday, 26 Shawwal (16 December 1416). In the second half of Shawwal 820 AH (November/December 1417) Barakat arrived from Egypt as Hasan's coregent.