StateManager first draft