Added the sendEvent feature
Merge branch 'send-event' into devel