The two kings served as the head of the government. They ruled simultaneously, but they came from two separate lines. The dual kingship diluted the effective power of the executive office. The kings shared their judicial functions with other members of the gerousia. The members of the gerousia had to be over the age of 60 and were elected for life. In theory, any Spartan over that age could stand for election. However, in practice, they were selected from wealthy, aristocratic families. The gerousia possessed the crucial power of legislative initiative. Apella, the most democratic element, was the assembly where Spartans above the age of 30 elected the members of the gerousia and the ephors, and accepted or rejected gerousia's proposals. Finally, the five ephors were Spartans chosen in apella to oversee the actions of the kings and other public officials and, if necessary, depose them. They served for one year and could not be re-elected for a second term. Over the years, the ephors held great influence on the formation of foreign policy and acted as the main executive body of the state. Additionally, they had full responsibility for the Spartan educational system, which was essential for maintaining the high standards of the Spartan army. As Aristotle noted, ephors were the most important key institution of the state, but because often they were appointed from the whole social body it resulted in very poor men holding office, with the ensuing possibility that they could easily be bribed.