Added public access to executeHooks() method.