Clean the empty modules from the load list
Merged ethan's set_events and the module cleanup