Removing unnecessary variables.