diff_periods is here