Added some functions to dataset