Completed save/load functionality.