Removed unnecessary local variables.