Update scan.c