 }
 
 void loop() {
+  int i;
+  boolean fona_enabled = false;
   if (time_elapsed >= SEND_INTERVAL) {
     time_elapsed = 0;
     // Get readings from weather shield.
     calc_sensors();
 
     // Enable fona
-    enable_fona();
+    fona_enabled = enable_fona();
     // Get time.
     fona.getTime(buffer+1, 25);
 

  digitalWrite(FONA_EN_BAT, HIGH);
  
  // See if the FONA is responding
  if (!fona.begin(Serial2)) {
    Serial.println(F("FONA not found"));
    return false;
  }

  // We need to wait the initialization in order to enable GPRS
  // So...
  delay(10000);
  for (i = 0; i < NUM_RETRIES && !fona.enableGPRS(true); i++) {
    Serial.println("FONA GPRS not enabled!");
    delay(10000);
  }
  if (i >= NUM_RETRIES) {
    Serial.println("Failed to enable GPRS!");
    return false;
  }
  
  if (!fona.enableNetworkTimeSync(true)) {
