Removing variables that are unused