Changed replicator implementation.

Computation of change diff is straighter.