modify_threshold now can store an arbitrary number of sample sweeps