Add some debug messages to check in which mode the tcp stack is