Added new analysis functions for end to end distance.