The first significant changes to the legal system of British India were initiated in the late 18th century by the governor of Bengal Warren Hastings. Hastings' plan of legal reform envisioned a multi-tiered court system for the Muslim population, with a middle tier of British judges advised by local Islamic jurists, and a lower tier of courts operated by qadis. Hastings also commissioned a translation of the classic manual of Hanafi fiqh, "Al-Hidayah", from Arabic into Persian and then English, later complemented by other texts. These translations enabled British judges to pass verdicts in the name of Islamic law based on a combination of Sharia rules and common law doctrines, and eliminated the need to rely on consultation by local ulema, whom they mistrusted. In the traditional Islamic context, a concise text like "Al-Hidayah" would be used as a basis for classroom commentary by a professor, and the doctrines thus learned would be mediated in court by judicial discretion, consideration of local customs and availability of different legal opinions that could fit the facts of the case. The British use of "Al-Hidayah", which amounted to an inadvertent codification of Sharia, and its interpretation by judges trained in Western legal traditions anticipated later legal reforms in the Muslim world.