Minor changes to Simulation::runLoop()