Add support to the engine for events.