Added Newton convergence checks and Jacobian update