         var deletedManagedObjects:Array<AnyObject> = Array<AnyObject>()
         var insertedOrUpdatedManagedObjects:Array<AnyObject> = Array<AnyObject>()
         
-        var predicate = NSPredicate(format: "%K == %@ || %K == %@", CKSIncrementalStoreLocalStoreChangeTypeAttributeName, NSNumber(short: CKSLocalStoreRecordChangeType.RecordUpdated.rawValue) ,CKSIncrementalStoreLocalStoreChangeTypeAttributeName,NSNumber(short: CKSLocalStoreRecordChangeType.RecordDeleted.rawValue))
+        var predicate = NSPredicate(format: "%K != %@", CKSIncrementalStoreLocalStoreChangeTypeAttributeName, NSNumber(short: CKSLocalStoreRecordChangeType.RecordNoChange.rawValue))
         
         for name in entityNames!
         {

                
            }
        }
        print("Local Changes \(insertedOrUpdatedManagedObjects) Deleted \(deletedManagedObjects)")
        return (insertedOrUpdatedManagedObjects,deletedManagedObjects)
    }
    

                    return true
                })
                var values = record.dictionaryWithValuesForKeys(keys)
                managedObject.setValuesForKeysWithDictionary(values)
                managedObject.setValue(NSNumber(short: CKSLocalStoreRecordChangeType.RecordNoChange.rawValue), forKey: CKSIncrementalStoreLocalStoreChangeTypeAttributeName)
                managedObject.setValue(record.recordID.recordName, forKey: CKSIncrementalStoreLocalStoreRecordIDAttributeName)
