             // blast out the pre-assembled array in output_buffer
             n64_send(output_buffer, 4, 1);
 
+            logFrame(output_buffer, 4, curFrame + 1);
+
             if (!haveFrame)
               break;
 
             curFrame++;
-
-            logFrame();
 
             // update input buffer and make sure it doesn't take too long
 

    // Validate file signature
    if (memcmp(signature, "M64\x1A", 4) != 0) {
        Serial.println(F("E:m64 signature invalid"));
        m64File.close();
        return false;
    }
      


    Serial.flush();

    tasFile.seekSet(0x018);
  
    // Open header
    uint32_t newNumFrames;
    if (tasFile.read(&newNumFrames, 4) != 4) {
        tasFile.close();
        Serial.println(F("E:Failed to read frame count"));
        return false;
    }
