Added utility method for sending events.