new function to add beacons.