Correct version; add missing "previous" variable