Add scan_consolenew to refactor.