Removing variables that are not required.