Merging of the code that actually gets a position out of the beacons