Improve the ranging feature by returning all the beacon data correcly