Detector updated to remove zero entries for detection results.