At least it compiles now. I need to find the best way to do this event system...