Minor tweaks to the rotation script