protected void startStop(boolean loggedIn, boolean enabled) {
    if (enabled && loggedIn) {
      if (this.monitor != null) {
        if (!this.monitor.isAlive()) {
          start();
        }
      } else {
        start();
      }
    } else {
      if (this.monitor != null) {
        if (this.monitor.isAlive()) {
          stop();
        }
      }
    }
  }