Following barcode scanner example from https://github.com/wildabeast/BarcodeDemo