The president of Indonesia is the head of state and head of government, commander-in-chief of the Indonesian National Armed Forces, and the director of domestic governance, policy-making, and foreign affairs. The president appoints a council of ministers, who are not required to be elected members of the legislature. The 2004 presidential election was the first in which the people directly elected the president and vice-president.[65] The president may serve a maximum of two consecutive five-year terms