Added ThresholdSlop; fixed fraction calculation.
Added ThresholdSlop.