Adds barcode scanning functionality