Edited to store varname in parser tree instead of id