Added support for transmitting beacons.