Tag switching in Bluetoothandler message handling refactored