Removed unnecessary duplicate variable.