Debugged duplicate variable name problem.