Changed the stopping of the robot.