Update scan.php