Refactored beacons functions to work for multiple beacons at once