Trying to figure out the gradient.