   {
     State.flag4 = 0;                                    //     Reset flag4 to zero
     rtcTransfer(reg_Control_2, WRITE, 0x02);            //     Reset real time clock interrupt flag
-    loadDateTime(&Date);
+    //loadDateTime(&Date);
     if(State.logging)
       storeNewRecord();
   }
-  // JOSH
-  /*****************************************\
-  * Sleep: put processor to sleep
-  *        to be woken by interrupts
-  * If serialOn is not set:
-  *   call function Sleep();
-  \*****************************************/
-  if(!State.serialOn)
-    enterSleep();
 
   // JOSH
   /*****************************************\

  pinMode(2, INPUT);              // Setup the Digital I/O Pins       
  pinMode(3, INPUT_PULLUP);
  pinMode(5, INPUT);

  magnetometerInit(&mag);         // Initialize Magnetometer
  

  if(State.readMag)
  {
    State.readMag = false;
    readData(&mag, &SignalState);  // Apparent Bottleneck
    bool peak = peakDetected(&SignalState);
    if(peak)
      State.pulseCount += 1;
  }
  
  // JOSH
  /*****************************************\
  * Sleep: put processor to sleep
  *        to be woken by interrupts
  * If serialOn is not set:
  *   call function Sleep();
  \*****************************************/
  if(!State.serialOn)
    enterSleep();

}

// DANIEL
