State diff engine.