Changed robot initialization code