Using loop labels cleans this up some, I think.