   radio.openWritingPipe(RF24_PIPE);
   
   // Power down nrf24
-  radio.powerDown();
+  //radio.powerDown();
   
   // Attach interrupt
   attachInterrupt(1, checkRadio, FALLING);

  
  sei();
}

  // Init motor pins
  pinMode(MOTOR_1, OUTPUT);
  pinMode(MOTOR_2, OUTPUT);

  Serial.println("Ready.");
}

void loop(void) { 
  // Replace this with Arduino sleep + WDT timeout
  delay(3000);

  radio.powerUp(); //delay(50);

  Serial.print("Request ");

  // Reset flags
  tx = false; fail = false;

  // Send status request to base. This command power up the radio
  radio.startWrite(request, 2);
  
  // Replace this with Arduino sleep
  while(!tx && !fail) { delay(10); }

  if(tx) { 
    // Transmission was successful, now wait a reply

    Serial.print(" -> Listening ");

    // Put nrf24 in receive mode
    radio.startListening();

    // Reset flags
    rx = false; fail = false;

    // Wait for nrf24 to do its magic
    // TODO:Replace this with Arduino sleep + WDT timeout
    int retries = 0;
    while(!rx || !fail) {
      delay(10); retries++;
      if(retries == 20) break;
    }

    if(rx) {
      // We got something

      // Read it
      radio.read(packet, RF24_PAYLOAD);

      Serial.print("-> Got ");

      for(int i = 0; i < RF24_PAYLOAD; i++) {
        Serial.print(packet[i], HEX); Serial.print(" ");
      }
      Serial.println();

      // TODO: do something here
    } else {
      // RX timed out. Restart from scratch.
      Serial.println(" -> Rx timeout");  
    }

    radio.stopListening();

  } else {
    Serial.println(" -> Tx Error");
  }
  
  // It's done. Now, rest.
  radio.powerDown();
}

void checkRadio(void) {
  // What happened?
  radio.whatHappened(tx,fail,rx);

  if(tx || fail)
    radio.powerDown();

  Serial.print("[tx:");
  Serial.print(tx);
  Serial.print(" rx: ");
  Serial.print(rx);
  Serial.print("fail: ");
  Serial.print(fail);
  Serial.print("]" );
}

/*
void goToSleep(bool isTimeout) {
  Serial.print("Sleep"); delay(10);

  timeout = true;

  delay(3000);
  
  // Enable interupt timeout
  //setWdt(isTimeout);
  
  // Go to sleep
  //sleep_mode();
}

void setWdt(bool isTimeout) {
