Added LocalListener and Bluetooth functionality.