 }*/
 
 int handleAlarm(String value) {
+  bool result = false;
   switch(value.charAt(0)) {
-    case '+': return alarms.add(value.substring(1)) ? 1 : -1;
-    case '-': return alarms.remove(value.substring(1)) ? 1 : -1;
-    case '#': return alarms.clear() ? 1 : -1;
-    default:  return -1;
-  }
-}
+    case '+':
+      result = alarms.add(value.substring(1));
+      Particle.publish("alarm:add", value.substring(1));
+      break;
+    case '-':
+      result = alarms.remove(value.substring(1));
+      Particle.publish("alarm:remove", value.substring(1));
+      break;
+    case '#':
+      result = alarms.clear();
+      Particle.publish("alarm:clear");
+      break;
+  }
+
+  return result ? 1 : -1;
+}


  RGB.color(0, 0, 0);
  RGB.brightness(0);

  /*delete parser;*/
}

  alarmRuntime.start();
  RGB.color(0, 0, 255);

  Particle.publish("alarm:start", Time.format(Time.now(), TIME_FORMAT_ISO8601_FULL));

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