Mucking about making gradients.