Add multiple looping
Add log at end of iteration
Simplify footer