Bugfix: maxiter is a class member