Added the rotator control function