Keyword arguments for tol and maxiter (#1573)