     if (bufferEndPos != -1) {
         // Perform one more input then end once the last input data has been queued.
         if (!bufferOneMore) {
-            screen.println(F("TAS finished playing"));
+            screen.println(F("TAS finished playing2"));
+            Serial.println("C:");
             finished = true;
         }
         else if (bufferPos == bufferEndPos) 

  int pos = 0;
  for (m64File = dir.openNextFile(); m64File; m64File = dir.openNextFile()) {
    const char *name = m64File.name();
    if (!m64File.isDirectory() && extMatches(name)) {
      if (pos == dirPos) {
        screen.stroke(0,255,0);
        strcpy(n64_raw_dump, name);

    screen.println(version);
    
    screen.stroke(255,0,0);

    m64File.seek(0x018);
  
    // Open header
    if (m64File.read(&numFrames, 4) != 4) {
        m64File.close();
        screen.println(F("Failed to read frame count"));
        return false;
    }
  
    // Get header size
    switch(version) {
