Initial commit of scanner code.