Added save and load to file methods.