Barcode function: this code is temporary.