scan_*() routines.