Trying a different way of determining the cascade threshold distances.