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.[10] Many people were executed or given harsh punishments for both political and criminal acts.