3 lines above can be ``self.maxiter = maxiter or 1000``.