Add distance tracking.