Added read_barcodes function.