Add scan QRCode function.