Added support for loading and saving core data