Increased the max # of iterations to 10000