Change variable name generation to unique names to avoid potential conflicts