Added a check for bluetooth in the communication handler