Change from loop to while.