Added SendEvent handling