Code for the robot at the rime of bagging.