Modified input scanner.