Obviously putting the second one at the beginning of the loop would eliminate the need for the first one, but I feel like there was good reason for this. I just can't remember it now, so maybe not.