Implementing QRcode scan.