Gradient compatibility shim.