Refactoring the bluetooth code
Refactoring the bluetooth code