ENH: Improving multilevel mod thresh script