Adding in the scanner and getting it working