Started the state functions