Added distance counter
Merge remote-tracking branch 'origin/master'