Got rid of unnecessary code

Removed unnecessary pops and pushes of the global table.