Added while loops.
Improved internal conditional block handling.