Moved CoreData calls back into the main thread