Replace if/else with switch/case; Introduce ability to disable cnnection tracking in runtime