Support for event hooks