Update detector.php