Toplevel control of number of iterations and restarts