Control over number of minimization steps

Thanks Dr. Steve.