     boolean parsingHeader = true;
 
     while(client.connected()) {
-      debug("Still connected");
       while(client.available()) {
         if (parsingHeader) {
           client.find("HTTP/1.1 ");

#endif

  if (SD.exists(cacheFilename)) {
    if (SD.remove(cacheFilename)) {
      debug("Cleared cache");
    } else {
      debug("Failed to clear cache. Aborting.");
      terminalError(3);
      return;
    }
  }
  File cache = SD.open(cacheFilename, FILE_WRITE);
  debug2("starting request, cache size is ", cache.size());

  debug2("Attempting to connect to ", host);
  if (client.connect(host, port)) {

inline void initNetwork() {
  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    // DHCP Failure
    terminalError(2);
  }
  delay(1000);
