Removed some unnecessary variables

The variables were unused or just copies of different variables.