   delay(400);
 }
 
-void Sequence9()
+void Sequence7()
 {
   int lidMid = lidTo;
   int lidMid2 = lidFrom + lidRange * 0.68;
   int lidMid3 = lidFrom + lidRange * 0.77;
 
-  delay(1000);
+  delay(50);
   Sweep(lidServo, lidFrom, lidMid, 2000);
   delay(500);
   Sweep(lidServo, lidMid, lidMid2, 1000);

  Sweep(lidServo, lidTo, lidFrom, 500);
}

void Sequence2()
{
  int lidMid = lidFrom  + lidRange * 0.90;
  int lidMid2 = lidFrom + lidRange * 0.68;


void RunSequence()
{
  int sequence = random(0, 20);
  
  if (sequence == 0) Sequence0();
  if (sequence == 1) Sequence1();
  if (sequence == 2) Sequence2();
  if (sequence == 3) Sequence3();
  if (sequence == 4) Sequence4();
  if (sequence == 5) Sequence5();
  if (sequence == 6) Sequence6();
  if (sequence == 7) Sequence7();
  if (sequence == 8) Sequence8();
  if (sequence == 10) Sequence10();
  if (sequence > 10) DefaultSequence();
    
  delay(3000);
}
