Moved the theta calculation inside the data object LRDataset.