General Musharraf, acting as Chief Executive, forcefully retired the conservative leaning jurists and elevated the judges who had known to have libertarian views in their jurisprudence at the Supreme Court, including Justice Irshad Hasan as Chief Justice. In 2002, The Supreme Court supervised the general elections successfully oversaw the transition of power from the office of Chief Executive to Prime minister. The legalization of Contempt of court act further strengthened the judicial independence of the Supreme Court in 2004 when Shaukat Aziz became prime minister.