Adding a basic distance calculator for beacons