ZER - Added code for loops and funcitons