Added some logic to send a tar over the socket