Removed redundant storage of the previous version on the variable