Removed unnecessary code

Got rid of some unnecessary pops and pushes of the global table