Add distance computation for beacons.