 }
 
 void exitStart() {
-  Renderer.start();
-  Syncer.start();
+  renderer.start();
+  syncer.start();
 }
 
 void updateClock() {

}

void enterAlarm() {
  AlarmRuntime.start();
  RGB.color(0, 0, 255);

  /*parser = new AlarmToneLanguage(song);*/
  /*Player.reset();*/
}

void updateAlarm() {
  RGB.brightness(map(abs((millis() % 2000) - 1000), 0, 1000, 0, 255));

  // TODO: Remove when snooze/terminate functionality is implemented
  if(AlarmRuntime.check(ALARM_LENGTH)) {
    stateMachine.transitionTo(Clock);
  }
}

void exitAlarm() {
  /*Player.stop();*/
  noTone(speakerPin);

  RGB.color(0, 0, 0);


/*Thread renderer;*/

/*Timer player(1, play);      // Play alarm tones 100x per second*/
Timer renderer(100, render); // Render 10x per second
Timer syncer(60000, sync);   // Sync cloud data once per minute

Runtime alarmRuntime = Runtime();
/*Runtime playerRuntime = Runtime();*/

uint16_t speakerPin = D0;

