   
   // if the file opened okay, write to it:
   if (myFile) {
+    #ifdef SERIAL_OUTPUT
     // Serial info
     Serial.print("Writing ");
     Serial.print(value);
     Serial.print(" to ");
     Serial.print(filename);
     Serial.print("... ");
+    #endif
     
     // Write value to file and close
     myFile.println(value);
     myFile.close();
     
+    #ifdef SERIAL_OUTPUT
     Serial.println("done.");
+    #endif
   } else {
     // if the file didn't open, print an error:
+    #ifdef SERIAL_OUTPUT
     Serial.println("error opening for writing.");
+    #endif
   }
 }
 

  }
}

void readFileToSerial(char* filename)
{
  // re-open the file for reading:

    myFile.println(minute());
    myFile.close();
    
    #ifdef SERIAL_OUTPUT
    Serial.println("done.");
    #endif
  } else {
    // if the file didn't open, print an error:
    #ifdef SERIAL_OUTPUT
    Serial.println("error opening for writing.");
    #endif
  }
}

boolean startSD()
{
  #ifdef SERIAL_OUTPUT
  Serial.print("Initializing SD card...");
  #endif
  // On the Ethernet Shield, CS is pin 4. It's set as an output by default.
  // Note that even if it's not used as the CS pin, the hardware SS pin 
  // (10 on most Arduino boards, 53 on the Mega) must be left as an output 
