Changes in EventManager. Implementation of StateManager.