Added support for triggering events