Changes to get state of the robot