Started adding coredata functionality.