The Government of Singapore is defined by the Constitution of Singapore to mean the executive branch of the state, which is made up of the president and the Cabinet. Although the president acts in their personal discretion in the exercise of certain functions as a check on the Cabinet and the Parliament, their role is largely ceremonial. It is the Cabinet, composed of the prime minister and other ministers appointed on their advice by the president, that have the general direction and control of the government. The Cabinet is formed by the political party that gains a simple majority in each general election.