Added iterative loop.