Done as C style loop.