Added code for multiple robots to handle names