OpenDataset function.