Aceh is the only part of Indonesia to apply Sharia to criminal law. Islamic courts in Aceh had long handled cases of marriage, divorce and inheritance. After special autonomy legislation was passed in 2001, the reach of courts extend to criminal justice.[107] Offences such as being alone with an unrelated member of the opposite gender, gambling and breaking Islamic dress rules can be punished with a public caning.[108] In 2014, the provincial government of Aceh extended sharia's reach, enacting and enforcing sharia to apply it to non-Muslims as well.[109][110]