Bluetooth Functionality added to the existing code