Created code to retrieve barcode