Finished the StateManager