Text this: Optimal control of asynchronous sequential machines.