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.