Implemented TCP approach for message sending.