Got distance working