CoreData implement.