Use "for" loop instead of "loop".

I believe "for" caused problems previously, but they shouldn't exist anymore.