Changed hessian learning method to somethign less stupid