Simulation state updating and emergency cancel added.