Improved the kn-kt determination algorithm.