Converges after 10000 iterations.