Patch for the Gradients Library