Issue #291: Updates applyDiff and applyGhostDiff API