Added some logic for setting the thresholds after construction
Hacked cue_state to support sequential and random state transitions