The many Jews who had fled and sought refuge in neighbouring villages returned, and within 8 years the community had reestablished itself, exceeding the former level of 300 households.[14] The Ottoman overthrow of the Mamluks brought about important changes. Under the earlier dynasty, Egyptian Jews were guided by their Nagid, a rabbi also exercising the functions of a prince-judge. This office was abolished because it represented a potential conflict with the jurisdiction of the hahambaşi or chief rabbi in Istanbul, who represented all Jews in the empire, and who had, via a Jewish officer (kahya), direct access to the sultan and his cabinet, and could raise complaints of injustices visited upon Jewish communities by governors in the provinces or Christians.[15]