Some boilerplate Core Data stuff.