The line of presidential substitutes comprises, in addition to the vice president, the president of the Chamber of Deputies, the president of the Federal Senate, and the president of the Supreme Federal Court, in that order. Those officers are called, in that order, to discharge the powers and duties of the presidency, as acting president, when both the president and vice president are not within the country and available to discharge the powers and duties of the presidency. Those officers also serve as acting president when both the presidency and the vice presidency become vacant, pending new elections to choose a new president and vice president to complete the pending presidential term.