Change the maxit parameter to 1000 iterations