Changed to a loop.