Added tracing for message sending.