Added radial distance calculation.