Added convert to dataset method