Removes unnecessary variables

Removed unused variables.