Added the functionality to clear detections