Barcode integration roughly done need to fine tune it :)