Completing Core Data implementation.