Lift pretty-printing functions into EngineM.
Move engine utility functions to EngineM.