     if(ms % 3 == 0){
       offset++;
     }
-//    if(ms < 50){
-//      offset++;
-//    } else if(ms % 10 == 0){
-//      offset++;
-//    } else if(ms > 10 * 8){
-//      ms = 0;
-//    }
-  }
-
-
-
-
-//  int daveDelay;
-//  EVERY_N_MILLISECONDS(1){
-//      ms += 10;
-//      uint8_t scale = 20;
-//      uint8_t ot =  ms % (scale * 2);
-//      if(ot < scale) {
-//      // Up
-//      daveDelay = ot * 2;
-//      } else {
-//        // Down
-//        daveDelay = (scale - (ot - scale))*2;
-//      }
-//  }
-//
-//  delay(daveDelay*8);
+  }
 }
 
 int numberOfSparkles = 1;

    nightSparkles();
  } else if (patternId == BEAUTIFUL_SPARKLES) {
    beautifulSparkles();
  // } else if (patternId == SINGLE_COLOR_SPARKLES) {
  //   sparkles();
  } else if (patternId == DISCO_BARBER_1 || patternId == DISCO_BARBER_2) {
    discoBarber();
  } else if (patternId == WORMS) {
    worms();
//  } else if (patternId == PARTY) {
//    party();
  } else if (patternId == DISCO_TWIRL) {
    discoTwirl();
  } else if (patternId == DISCO_TWIRL_2) {

bool firstTimeRunningThroughPattern = true;

#define BEAUTIFUL_SPARKLES 1
#define DAVE 2
#define NIGHT_SPARKLES 3
#define WORMS 4
#define DISCO_BARBER_1 5
#define DISCO_TWIRL 6
#define DISCO_BARBER_2 7
#define DISCO_TWIRL_2 8
int maxPatternId = 8;

int rotationInMillseconds = 8000; // 20 seconds for production

bool holdPattern = false;
