Renamed device -> beacon. Implemented text expansion.