Added logic to comparer the service levels to thresholds.