Bug fix: While loop was missing `end while`.
Add for statement.