 	}
 }
 
-int worm(int color)
-{
+void worm(int color) {
+
 	if(currentMode != previousMode) { setColor(color); previousMode = currentMode; }
 
-	if(millis() > timer + wormInterval)
-	{
-		for(int a=0; a <= numPixels; a++) { strip.setPixelColor(a,0,0,0); }
+	if(millis() > timer + wormInterval) {
+
+		for(int a=0; a < numPixels; a++) { strip.setPixelColor(a,0,0,0); }
 		for(int b=wormStartPixel; b < wormStartPixel + wormLength; b++) {
-			if(b >= numPixels) { ledNumber = b - numPixels; } else { ledNumber = b; }
+			if(b >= numPixels) ledNumber = b - numPixels;
+			else ledNumber = b;
+
 			strip.setPixelColor(ledNumber, color1, color2, color3);
 		}
 

const int		twinklePauseInterval = 100;	// Time to pause at max and min

// Switch states
boolean			sw1Read, sw2Read;

// Variable declarations
int				currentMode = 1, previousMode = 2;

	}
}

void increase(int color) {

	if(currentMode != previousMode) {
		setColor(color);
		currentBrightness = maxBrightness;
		increaseLength = 1;
		previousMode = currentMode;
	}

	if(millis() > timer + increaseInterval && increaseDirection) {
		for(int a=0; a < numPixels; a++) { strip.setPixelColor(a, 0, 0, 0); }

		for(int a=0; a < increaseLength; a++) {
			strip.setPixelColor(a, color1, color2, color3);
		}

		increaseLength++;
		if(increaseLength >= numPixels) {
			increaseLength = 1;
			increaseDirection = !increaseDirection;
		}

