   temp[n+2] = '0' + ((unsigned long) (currentTemp*100)) % 10;
   temp[n+3] = '0' + ((unsigned long) (currentTemp*1000)) % 10;
 
-  // Make request to DynamoDB API.
+  // Resolve server IP address
   uint32_t ip = 0;
+  Serial.print(WEBSITE); Serial.print(F(" I.P. address: "));
   while (ip == 0) {
-    if (!cc3000.getHostByName("fremont", &ip)) {
+    if (!cc3000.getHostByName(WEBSITE, &ip)) {
       Serial.println(F("Couldn't resolve!"));
     }
     delay(500);
   }
+  cc3000.printIPdotsRev(ip);
+  
+  Serial.print(F("\n\rPinging ")); cc3000.printIPdotsRev(ip); Serial.print("...");  
+  int replies = cc3000.ping(ip, 5);
+  Serial.print(replies); Serial.println(F(" replies"));
+  
+  // Send request to Elasticsearch API
   Adafruit_CC3000_Client www = cc3000.connectTCP(ip, 9200);
   if (www.connected()) {
-    
+    Serial.println(F("Connected. Sending reading to Elasticsearch"));
     // Generate string with payload length for use in the signing and request sending.  
     char payloadlen[8*sizeof(unsigned long)+1];
     memset(payloadlen, 0, 8*sizeof(unsigned long)+1);
     ultoa(20+strlen(currentTimeStr)+strlen(temp), payloadlen, 10);
     
     // HTTP Headers
+    Serial.print(F("Sending headers... "));
     www.fastrprint(F("POST /temp_gauge/reading HTTP/1.1\n"));
     www.fastrprint(F("Host: fremont:9200\n"));
     www.fastrprint(F("Content-Length: "));

                                         ADAFRUIT_CC3000_VBAT,
                                         SPI_CLOCK_DIV2);

// Wireless network configuration
// Put WiFi Config Here

// Other sketch configuration
#define     READING_DELAY_SECS     10      // Number of minutes to wait between readings.
#define     TIMEOUT_MS             15000  // How long to wait (in milliseconds) for a server connection to respond (for both AWS and NTP calls).

#define MAX_DS1820_SENSORS 1
byte addr[8];

  // Note: If the sketch will run for more than ~24 hours, you probably want to query the time
  // server again to keep the current time from getting too skewed.
  unsigned long currentTime = lastPolledTime + (millis() - sketchTime);

  Serial.print(F("Starting read. Current time: ")); Serial.println(currentTime);
  lastReading = currentTime;

  float currentTemp = readTempF();
  Serial.print(F("Current temp: ")); Serial.println(currentTemp);

  dbWrite(currentTime, currentTemp);
  
  Serial.println(F("\n\rDone writing. Delay till next read.\n\r\n\r"));
  delay(READING_DELAY_SECS * 1000);
}

float readTempF() {
