Added the send and receive threads