Change the crossing index calculation to be more rational.