Added rudimentary TCP support