Added log messages for sending and receiving