Added the event dispatcher to the BaseHook class