Add success flag to datasets created by functions
Created by: CompPhysChris