@Override
  public String activeCommandSummary() {
    StringBuilder sb = new StringBuilder();
    String comma = "";

    for (GcodeCommand gc : activeCommandList) {
      sb.append(comma).append(gc.getCommandString());
      comma = ", ";
    }

    if (commandStream != null) {
      sb.append(comma).append(commandStream.getNumRowsRemaining()).append(" streaming commands.");
    }

    return sb.toString();
  }
 @Override
 public int numActiveCommands() {
   int streamingCount = commandStream == null ? 0 : commandStream.getNumRowsRemaining();
   return this.activeCommandList.size() + streamingCount;
 }