Added an IORef to keep once from starting the engine more than once.