Control the engine from the event queue.