Delete unnecessary while loop.