In 1865, he ran for District Attorney, losing narrowly to his friend and roommate, Lyman K. Bass, the Republican nominee. In 1870, with the help of friend Oscar Folsom, Cleveland secured the Democratic nomination for Sheriff of Erie County, New York. He won the election by a 303-vote margin and took office on January 1, 1871 at age 33. At the same time the Democrats gained support from the Mugwumps, they lost some blue-collar workers to the Greenback-Labor party, led by ex-Democrat Benjamin Butler. In general, Cleveland abided by the precedent of minimizing presidential campaign travel and speechmaking; Blaine became one of the first to break with that tradition.The campaign focused on the candidates' moral standards, as each side cast aspersions on their opponents. Cleveland's supporters rehashed the old allegations that Blaine had corruptly influenced legislation in favor of the Little Rock and Fort Smith Railroad and the Union Pacific Railway, later profiting on the sale of bonds he owned in both companies.