Refactored the rotator script and implemented console array passing