Final version of qr