Code used on TerrestrialRobot