Send the message after you set the global variable?