A rectangular kiosk in the middle of courtyard is known as Kuhda Khane (House of God, Mosque. The Khuda Khane was commissioned by Mahmud Shah in 1351. The main function of this building was to house the Korans. The core, which measures about five and a half by seven meters, is enveloped by two-meter wide loggias to the east, west and north.