Update diff
Add intermediate variable