Added GradientFidFactory class.