Move initialization routine into begin_scanning.