Added do while loop.