Added basic tcp communication.