Adding _calculate_cutoff.