Updated eventmanager to handle newstyle events.