 As a typical Mamluk foundation of this sort, the descendants of al-Mu'ayyad were also entitled to keep any income from the endowments which financed the foundation.As a result, they may have had an interest in cutting out operational costs for the hospital.Barsbay likely established a new endowment and trust for the conversion and operation of the building to a mosque.