Implement name_scan.