Slight update to the DistanceFrom function

works now