The president maintains the regular and coordinated operation and stability of the national government system, and safeguards the independence and territorial integrity of the country. The president has the power to call ordinary and extraordinary elections for the Croatian Parliament (in a manner specified by the Constitution), as well as to call referenda (with countersignature of the prime minister). The president formally appoints the prime minister on the basis of the balance of power in parliament and consultations conducted with the leaders of parliamentary parties, grants pardons and awards decorations and other state awards. The president and Government (Cabinet) cooperate in conducting foreign policy. In addition, the president is the commander-in-chief of the Croatian Armed Forces. The president appoints the director of the Security and Intelligence Agency in agreement with the prime minister. The president may dissolve the Parliament under circumstances provided by the Constitution. Although enjoying immunity, the president is impeachable for violation of the Constitution. In case of a temporary or permanent incapability by the president to discharge the duties of his or her office, the speaker of the Parliament assumes the office of acting president until the president resumes his or her duties, or until the election of a new president within 60 days of the permanent vacancy occurring.