Added data persistence and ability to load data from disk.