Implemented motor event trigger.