These officials can play important roles in setting policy and overseeing state functions. In 2018, Democrats won attorneys general races in Michigan, Wisconsin, Nevada and Colorado; each position had previously been held by a Republican. After the elections, Democrats held 27 of the 50 attorneys general positions in the country.[50] Democrats also won control of the office of secretary of state in Michigan, Arizona, and Colorado, although Republicans still held a majority of the elected secretary of state positions nationwide.[51] Other offices that Democrats won control of in 2018 include the Arizona Superintendent of Public Instruction,[52] the Maine State Treasurer,[53] the Iowa State Auditor[54] and the Florida Commissioner of Agriculture.[55]