I/O functionality for datasets.