Under a 2002 amendment, the leader of the party winning the largest number of seats in the election is invited by the governor-general to form the government, if they can muster the necessary majority in parliament. The process of forming such a coalition in PNG, where parties do not have much ideology, involves considerable "horse-trading" right up until the last moment. Peter O'Neill emerged as Papua New Guinea's prime minister after the July 2012 election, and formed a government with Leo Dion, the former Governor of East New Britain Province, as deputy prime minister.