Port more of EventManager.