The judicial system is based on English common law, continuing the legal tradition established during British rule and with substantial local differences. Criminal law is based on the Indian Penal Code originally intended for British India, and was at the time as a crown colony also adopted by the British colonial authorities in Singapore and remains the basis of the criminal code in the country with a few exceptions, amendments and repeals since it came into force. Trial by jury was abolished in 1970. Both corporal punishment (caning) and capital punishment (by hanging) continue to be applied as legal penalties.