Better input tap protocol detection (to be tested)