Fixed rotator

Tided code up and remove duplicate script line