Added distance counter