Modified Fig. 5C to work with arbitrary number of doses and individual pulsing thresholds