Moved CoreData import into header file