Added PruneDetections