     logFile.print((int)GPS.fix);
     logFile.print(',');
     logFile.print((int)GPS.fixquality);
+    logFile.print(',');
+    logFile.print(Acc[0]);
+    logFile.print(',');
+    logFile.print(Acc[1]);
+    logFile.print(',');
+    logFile.print(Angle[0]);
+    logFile.print(',');
+    logFile.print(Angle[1]);
     logFile.println();
     logFile.close();
-
     return 1; // Return success
   }
-
   return 0; // If we failed to open the file, return fail
 }
-
 // printHeader() - prints our column names to the top of our log file
 void printHeader()
 {
   File logFile = SD.open(logFileName, FILE_WRITE); // Open the log file
-
   if (logFile) // If the log file opened, print our column names to the file
   {
     int i = 0;

    logFile.close(); // close the file
  }
}

// updateFileName() - Looks through the log files already present on a card,
// and creates a new file with an incremented file index.
void updateFileName()

      break;
    }
  }
  logfile = SD.open(filename, FILE_WRITE);
  if( ! logfile ) {
    Serial.print("Couldnt create ");
