Slight exploit optimisation. Instead of checking if its enabled each time in the event, only register the events if enabled.