Change variable name to avoid redefinition in same scope warning