Added statemanager