Add mode selection to TCP interface.