Imported Bluetooth stuff from CM