Refactored code to use IRobotCreate class.