Update begin_to_scan.sh