Debugged the polynomial gradient analyzer.