What was the primary purpose of political machines?

to control one party and its candidates
to control one area for a political party
to make sure the needs of people were met
to bribe public officials to enforce policies