Avoid communication delay by sending command and event, if event present, execute command