Using the gradient directly.