   }
 }
 
+uint8_t extractMovement() {
+  return buffer[0] - 48;
+}
+
+uint8_t extractSpeed() {
+  uint8_t speedBuffer[3] = { 45, 45, 45 };
+
+  int i = 0;
+  while (buffer[i + 2] >= 48 && i < 3) {
+    speedBuffer[i] = buffer[i + 2];
+    i++;
+  }
+
+  return atoi((char*)speedBuffer);
+}
+


  if (bytesRead == 2) {
    // Send commands to internal controller
    jeepCommandInterpreter(buffer[0] - 48, buffer[1] - 48);
    resetBuffer();
  }
}


#define BUFFSIZE   128
#define MAX_POWER  400

// Command interpreter logic
const static boolean DEBUG = false;
