Removed a variable that was unnecessarily outside its relevant scope.