Added while loop parsing.