 #define LED_PIN D7
 #define MAX_CARDS 1000
 
+// Dont demand wifi before our code starts running.
+SYSTEM_MODE(MANUAL);
+
 // Represents a card, including how to identify it and what to do when it's scanned.
 typedef struct {
-  char* rfid; // the code from the reader
+  int rfid; // the code from the reader
   bool allow; // true if allowed in, false if not
   char* greeting; // Text that will be shown the card owner when scanned
 } Card;

// Number of cards in memory right now.
uint numCards = 0;

void setup() {
  pinMode(LED_PIN, OUTPUT);
  Particle.subscribe("sentry/update-members", updateMembers);
  lcd.begin(16, 2);
  resetLCD();
}

void loop() {
}

void resetLCD() {

    }
  }

  // flashDebugLEDs();
  showUpdatedMembersOnLCD();
}

void checkCode(int code) {
  Card card;

  lcd.clear();

  for (int i = 0; i < numCards; i++) {
    card = cards[i];
    if (card.rfid == code) {
      lcd.print(card.greeting);
      delay(3000);
      resetLCD();
      return;
    }
  }

  lcd.print(" ACCESS  DENIED ");
  delay(3000);
  resetLCD();
}

// TEMP
//
void showUpdatedMembersOnLCD() {
  lcd.clear();
  lcd.print("     UPDATE!    ");
  lcd.setCursor(0, 1);
  lcd.print("  Got ");
  lcd.print(numCards);
  lcd.print(" cards.");
  delay(2000);

  resetLCD();
}

void flashDebugLEDs() {
  for (int i = 0; i < numCards; i++) {
    digitalWrite(LED_PIN, HIGH);
