Implemented the ability to have per-source rates and thresholds