Added do-while for single statement in loop