Updated method ApplyDifferences().