Changed the convergence tolerance for the Newton-Raphson algorithm