Added while loop compilation