 void LockScreen()
 {
   while (((Serial1.read()) != -1));  //Clear off the input buffer
-  RightButtonLEDState = 2;
-  LeftButtonLEDState = 2;
   while (1)
   {
+    RightButtonLEDState = 2;
+    LeftButtonLEDState = 2;
     Serial1.write("\n\n\n\r    ");
     delay(50);
     Serial1.write("** LOCKED **\r\n");

    if (digitalRead(LeftButton_Pin) != 0)  //confirm arming is still held
      return;
    int pinnumber = 0xff;
    switch (sequence[i][1])
    {
      case 0:
        pinnumber = Output1_Pin;

//Query for channel
      Serial1.write("\r\nChannel: ");
      if (sequence[i][1] != 0xfe)  //only print the current channel if it is legal
        Serial1.print(sequence[i][1]+1);
      value = CheckForChInput();  //returns 0-5 for keypad input 1-6
      switch (value)
      {
        case 0:
