In 1978, the second amendment to the Constitution moved from a westminster system into a presidential system with the president serving as both head of state and head of government. An elected presidency with a longer term and independence from Parliament was thus created. The President would be the commander-in-chief of the armed forces, head of the cabinet of ministers and could dissolve parliament (after one year has passed since the convening of parliament after a parliamentary election). The prime minister would serve as the deputy to the president and successor.