Added code to update communication log on both sending and receiving
messages.