     g = sliderEvent(&changes, 0);
     if (g!= 0)
       DEBUG_PRINTLN(g);
-    return;
   }
   
   switch(state) {
   case IDLE:
     delay(20);
-    if (false) { // g == gPRESSED) {
+    if (g == gPRESS) {
       DEBUG_PRINTLN("[INIT] Entering");      
-      // state = INIT;
+      state = INIT;
       g = gNONE;
     }
     selectedXBee = -1;
     break;
   case INIT:
-    DEBUG_PRINTLN("[INIT] Sending IR");
     session_id = random(0xFFFF);
-    // irsend.sendSony(session_id, 16);
-    XBee.print(session_id, HEX);  
+    DEBUG_PRINT("[INIT] Sending IR: ");
+    DEBUG_PRINTLN(session_id);
+    irsend.sendSony(session_id, 16);
+    // XBee.print(session_id, HEX);  
 
     // at the same time listening to any response
     state = WAIT;

  // all related events are detected here
  gesture_t returnV = gNONE; 
  softpotReading = analogRead(softpotPin);
  DEBUG_PRINT("   gStart_time: ");
  DEBUG_PRINT(gStart_time);
  DEBUG_PRINT("   clicks: ");
  DEBUG_PRINT(clicks);
  DEBUG_PRINT("   gState: ");
  DEBUG_PRINT(gState);
  DEBUG_PRINT("   Softpot Reading: ");
  DEBUG_PRINTLN(softpotReading);

  if (clicks > 0 && (millis() - gStart_time) > gResolution) {
    gState = gIDLE;

	initSelectedXBee = selectedXBee;
	previousSelected = 0;
	released = false;
	pressed = true;
	state = VERIFY;
      }
    }
