Added a common class ThresholdRate