 Gradually, as mamluks increasingly filled administrative and courtier posts within the state, Mamluk innovations to the Ayyubid hierarchy were developed.The offices of "ustadar" (majordomo), "hajib" (chamberlain), "emir jandar" and "khazindar" (treasurer), which existed during the Ayyubid period, were preserved, but Baybars established the additional offices of "dawadar", "emir akhur", "ru'us al-nawab" and "emir majlis".The administrative offices were largely ceremonial posts and were closely connected to various elements of the military hierarchy.