Added generateQTO method.