Added EventManager class