Updated Rotate script