Added a function to update the status of the robot