Removing an unneeded variable