Made the slope-finding algorithm in KTConsensusThresholding configurable.