Remove unnecessary variables.
Implement mutate function.