Labour lost 4 seats and fell narrowly behind the SNP, who won 47 seats to Labour's 46 seats. Labour still won the most constituencies, but the SNP made inroads. Both parties were well short of a majority in the parliament. SNP leader Alex Salmond was elected first minister with support from the Scottish Greens, defeating McConnell 49-46 while the Conservatives and Liberal Democrats abstained. Labour did take the most votes in the local elections on the same day but lost seats due to the introduction of proportional representation for local council elections. On 15 August 2007, McConnell announced his intention to resign as Scottish Labour leader. Wendy Alexander emerged as the only candidate to succeed him, and was installed as leader of the Labour group in the Scottish Parliament on 14 September 2007.