Sending and receiving messages added