Reorganizing scripts in probability_filter.