EventRegistry and changes to notify
Changes to event_registry
Brought some elegance to the notify function