Trying to debug the message send routine