Removed unused variable.
Change how changes are calculated in preparation for doing submits.