Update scan.C