Initial work to init scanner.