Work on hess function.