Trying to get eventmanager working