Update to barcode recognition code