Updated robot script