Tweak the loop rotation logic to check whether the loop is naturally