Correct bug in scanner.
Remove debug prints.