Getting rid of extraneous variables.