In 1878, he was appointed to the post of entomologist to the U.S. Department of Agriculture, but he resigned after only a year because of a disagreement with the Commissioner. He was reappointed in 1881 and remained in the top post until 1894. He was also appointed the first curator of insects for the Smithsonian Institution in 1885.