 void setup() 
 {
   resetState(&State);             // Setup the System State structure
-                                  // Load Date_t with Date/Time info
+  
+  pinMode(2, INPUT);              // Setup the Digital Pins       
+  pinMode(3, INPUT);
+  pinMode(4, OUTPUT);
+  pinMode(5, INPUT);
+
+  attachInterrupt(digitalPinToInterrupt(2), INT0_ISR, FALLING);   // Setup Interrupts
+  attachInterrupt(digitalPinToInterrupt(3), INT1_ISR, FALLING);
+  
+  loadDateTime(&Date);            // Load Date_t with Date/Time info
+                                  
   disableUnneededPeripherals();   // Disable unneeded peripherals
 }
 

#include "state.h"
#include "RTC_PCF8523.h"

// DANIEL
/*********************************************************************************\
 * Setup:
 *    System State structure      Complete

  *   Set serialOn flag.
  *   call serialPowerUp()
  \*****************************************/  
  if((digitalRead(5) == 0) && !State.serialOn)
  {
    State.serialOn = true;
    serialPowerUp();
