Added local diff support for update action. Added state checks.