The Utah Attorney General serves as the state's legal adviser, criminal prosectuor and public advocate or as described in the Constitution he or she is to "be the legal advisor of the State officers, and shall perform such other duties as may be provided by law." (State Constitution, Article 7, Section 18). The office of Attorney General was created within the Executive branch in upon statehood in 1896 having inherited functions previously performed by the United States District Attorney and Territorial Attorney General. The Attorney General is elected to a four-year terms, must be at least twenty-five years old and admitted to practice law before the Utah Supreme Court.