Updated the Hessian calculations to include the regularisation parameter that was missing