Removed some unused variables.