Debug code for message sent