Improve QR code scanner