Setup iteration

Also fixed a few function calls
Uncommented print statement