         Serial.print(devStatus);
         Serial.println(F(")"));
     }
+}
+
+/* Debug */
+
+void setTestingEnv(){
+    fadeTime = 1;
+    sampleWait = 100;
+    updateWaitPeriod = 5000;
 }
 
 void debugState(){

int rightLED = 3;

//Constants
int const maxBrightness = 101;//duty cycles
float const pi = 3.1415926;
//int const updateWaitPeriod = 1000*60*5; //5 mins in milliseconds
int const updateWaitPeriod = 5000; //FOR TESTING

//Tracking Data
int halfPeriod = 0;
boolean lastIsMin = false;
int sampleSize = 20;
//int sampleWait = 1000*2; //2 seconds in milliseconds
int sampleWait = 100; //FOR TESTING
//activity amplitudes
float activities[300];
//corresponding times of above activities

int midMsg;

void setup(){
    
    /* Uncomment to set time periods suitable for testing */
    //setTestingEnv();

    /* Init Bluetooth */
    BT.begin(9600);
