His final years in India were devoted to the creation of a Penal Code, as the leading member of the Law Commission. In the aftermath of the Indian Mutiny of 1857, Macaulay's criminal law proposal was enacted. The Indian Penal Code in 1860 was followed by the Criminal Procedure Code in 1872 and the Civil Procedure Code in 1908. The Indian Penal Code inspired counterparts in most other British colonies, and to date many of these laws are still in effect in places as far apart as Pakistan, Singapore, Bangladesh, Sri Lanka, Nigeria and Zimbabwe, as well as in India itself. This includes Section 377 of the Indian Penal Code, which remains the basis for laws which criminalize homosexuality in several former British colonies.