One of Ranjit Singh's first acts after the 1799 capture of Lahore was to revive the offices of the hereditary Qazis and Muftis which had been prevalent in Mughal times. Kazi Nizamuddin was appointed to decide marital issues among Muslims, while Muftis Mohammad Shahpuri and Sadulla Chishti were entrusted with powers to draw up title-deeds relating to transfers of immovable property. The old mohalladari system was reintroduced with each mahallah, or neighborhood subdivision, placed under the charge of one of its members. The office of Kotwal, or prefect of police, was conferred upon a Muslim, Imam Bakhsh.