Use do-while for relevant loops.