Added a way to prefix gradients