Distance and movement analysis