     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;

  "time",
  "satellites",
  "fix",
  "fixquality"
};

//////////////////////
// Log Rate Control //
//////////////////////
#define LOG_RATE 1000 // Log every second
unsigned long lastLog = 0; // Global var to keep of last time we logged

// blink out an error code
void error(uint8_t errno) {
  while(1) {

      { // Print an error, don't update lastLog
        Serial.println("Failed to log new GPS data.");
      }
    }
  }
}
byte logGPSData()
{
  if (GPSECHO)
