Testing while loop'ed code.