Refactor body_scanconsole and scan_consolenew process.