Removes unneeded variable