Fixed modules to have a get_events function and only call it when directly executed, not on module load