Update Detector.cs