Added do-while loop