Looks like implementing the events object as a module is causing error..?