Declarative event support.