StateManager now global