Added code for QR reader