Added some missing code in Bluetooth.