added fastPD and thresholds for fast detections