Added a utility to record datasets.