Remove unwanted variables