Changing the import statement and calling barcodeScanner in a different way