Implement QRCode logic