Changed dataset creation to use existing dataset type