Added basic message sending to the client.