Shape Distance elements fixed and tested.