Renamed protocol to udpOrTcp and moved it to last argument