Migrate engine constructors to EngineM.
Migrate runNEndpoint to EngineM.