Adjust rotate script, stop on over query limit.