Changing structure to use just QR code detection