Proper use of the loop - required for VelocityPage