Minor changes in how to display message sent in the console.
Inject API in MessageReceived function.