Add event manager

Not compiling yet