Update code to use keyword arguments in qr factorisation.