Deprecated old (STM) API for events.