Receive and send messages.