Statemanager working