More changes to handle transition state distances.