@gordonian: Detector's function