Fixed: stack was being replaced.
Fixed: typos.
Added: temp. solution of updating vals.