Added auto discovery of scanner.