Between 1979 and 1982, the entire pre-Revolutionary judiciary was purged, and their duties replaced by "Revolutionary Tribunals" set up in every town. These tribunals ruled on "Islamic law", but were in practice unfair, biased, and the judges were inexperienced and often incompetent. Many people were executed or given harsh punishments for both political and criminal acts. There were no appeals either, and trials often lasted minutes in an un-orthodox "court". In 1982, the regular court system was reinstated, but with the judges now trained in Islamic law. The Revolutionary Courts became a part of this court system, ruling in matters of "national security" such as drug trafficking and political and "anti-revolutionary" crimes, and were considered the "judicial arm of the regime". In 1982, in response to military coup threats, a separate "Military Revolutionary Court" was formed, handling military cases. The Retribution Law ("Qisas") of 1982 replaced sections of the Public Punishment Law (1924).