Added a timeout to see if barcode popup will function