In the 1828–29 United States House of Representatives elections, while Jacksonians soundly took control of the presidency, with Andrew Jackson's victory, they greatly increased their majority in Congress. Outgoing President John Quincy Adams's unpopularity played a major role in the Jacksonian pick-up, as did the perception of the Anti-Jacksonian Party as urban and elitist. Major increases in suffrage also heightened Jacksonian wins, as newly enfranchised voters tended to associate with Jacksonian principles. The Anti-Masonic Party, a single issue faction based on distrust of Freemasonry, became the first third party in American history to garner seats in the House.