 
 
   if(random(10001) < 2){
-    laser.fire(0);
-    delay(random(1000, 5000));
+    sleep(5, 10);
 
   }
 
   else if(random(100001) < 10){
-    sleep(30*60, 40*60);
+    sleep(1800, 2400); //sleep between 30 and 40 minutes
   }
 
   laser.fire(1);


int getMarkovSpeed(int oldSpeed){
  int val = random(101);
  int lowVal, midVal, hiVal

  if(oldSpeed == 1){
    if(val < 20){

  }
}

void sleep(unsigned long minSec, unsigned long maxSec){
  unsigned int delayVal = random(minSec, maxSec);
  laser.fire(0);
  panTilt.detach();
  unsigned long startTime = millis();
  for(unsigned long i = 0; i < delayVal; i++){
    while(millis() - startTime < 1000){
      heartBeat(millis(), 10000);
      if(startTime > millis()){ //check for rollovers
        startTime = millis();
        break;
      }
    }
    startTime = millis();
