Added do...while loop