Added the scanner code.