Deriving the dataset