Include a multi-state thresholding method. It should automatically select the number of states per device, and the threshold values for each status.