Moved calculation of lambda and q range inside the LRDataset object.