Removed unused variables.
Renamed variable.