Adding in fixed Hessian code