Add function to datasetfeature; implement data writing