More work on barcode generation.