How Barcodes are generated?