Updated Robot class and script example.