Declaration can be moved into the loop.