Basic version of QR generating code.