   int len = readline(Serial.read(), buffer, 80);
   if (len > 0) {
     String message = buffer;
-    if (message.charAt(0) == enableKey && laserEnabled == false) {
-      enableLaser();
-      submitPower((byte)message.charAt(1));
-    } else if (message.charAt(0) == disableKey && laserEnabled == true) {
-      disableLaser();
-    } else if (message.charAt(0) == powerKey && laserEnabled == true) {
-      submitPower((byte)message.charAt(1));
+    if (message.charAt(0) == powerKey && laserEnabled == true) {
+      String powerLvlString = String(message);
+      powerLvlString.remove(0);
+      int lvl = powerLvlString.toInt();
+      if (lvl < 0 && lvl > 100) {
+        Serial.println("Error: Invalid power level, should be greater than 0 and smaller than 100");
+      } else {
+        submitPower((byte)message.charAt(1));
+      }
+    } else if (message.charAt(0) == powerStatusKey) {
+      Serial.println(powerLevel, DEC);
     }
   }
 }

const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;

const byte powerLevel = 50;

const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;

  pinMode(prrPin, OUTPUT);
  pinMode(buttonPin, INPUT);
  pinMode(ledPin, OUTPUT);
  pinMode(guideLaserPin, OUTPUT);
  digitalWrite(guideLaserPin, HIGH);
  Serial.begin(9600);
}

