Added sendEvent()