Simplifing the scanner