Add basic saving and loading functionality.