While still in great part a successful ranchman, he ran for mayor of New York and was defeated. He now devoted himself with increased energy to his literary labors until, soon after, he was appointed by President Harrison a member of the Civil Service Commission. He served on this commission with marked ability for six years, when he resigned to become police commissioner of New York City.