Hacky support for the magic print statement in the simulator.