Running for multiple iterations but not converging