Add control of iterations in main loop. Return convergence indicator.