         //Serial.println("TEST");
       }
       /*
-        if (current_macro_input[2] == macro_loop_metadata[currentMacroIndexRunning][2]) {
+        if (current_macro_input[2] == inner_loop_metadata[currentMacroIndexRunning][2]) {
         //
         //Serial.println("TEST");
         }

  }
  digitalWrite(latchPin, HIGH);

  delay(2000);

  // Now we release the buttons X, Y and Start after 2 seconds have passed
  inputStatus[buttonX] = HIGH;
  inputStatus[buttonY] = HIGH;
  inputStatus[buttonStart] = HIGH;

      macroInputsToRun = serial_rx_buffer[1];
      loopMacro = serial_rx_buffer[2];
      currentMacroIndexRunning = serial_rx_buffer[3];
      timesToLoop = serial_rx_buffer[4]; // Times to repeat, if <=0, it'll not repeat, if >0, it'll repeat n times, so in this case, gramatically speaking, timesToLoop and times to repeat are different things (does this make sense?), so the max amount of times it can loop is 256, the amount of times it can repeat is 255, the first iteration is not a repetition (Repeat input? Repeated input?) (Again, does this makes sense?)
      loopCounter = serial_rx_buffer[5];
      howManyInnerLoopsMacroHas = serial_rx_buffer[6]; // >0 if there are, <=0 if there aren't
      // The block below resets all inner loop metadata counters
      if (howManyInnerLoopsMacroHas > 0) {
        Serial.println("TEST ABC");
        macroMetadataIndex = 0;
        if (inner_loop_metadata[0][1] > 0 && inner_loop_metadata[0][3] > 0) {
          Serial.println("TEST DEF");
          macroMetadataIndex = 0;
          for (uint8_t macroMetadataIndexInner = 0; macroMetadataIndexInner < howManyInnerLoopsMacroHas; macroMetadataIndexInner++) {
            Serial.print("BEFORE macroMetadataIndexInner = ");
            Serial.println(macroMetadataIndexInner);
            inner_loop_metadata[macroMetadataIndexInner][2] = 0; // Reset current input index for inner loop
            inner_loop_metadata[macroMetadataIndexInner][4] = 0; // Reset current repeat counter for inner loop
            Serial.print("AFTER macroMetadataIndexInner = ");
            Serial.println(macroMetadataIndexInner);
          }
        }
      }
      //isInputting = true;
      //previousInputDelay = millis();
    }
