Got distance tracking working