sentences:  Some years later, Arpa Emini Mustafa Efendi built a "Mektep" (school) and a Medrese.In 1746, Hacı Beşir Ağa (d. 1747), the "Kizlar Ağası" of the Topkapı Palace, built a mihrab, minbar and mahfil, completing the conversion of the building into a mosque.Ravaged by fire and damaged by earthquakes, the mosque was restored in 1855 and again between 1880 and 1890.