Add sending and receiving messages