Added distance joint support.