Added for loops and defined statements.