Add file functions to aid saving to file system.