Update Cloud Code for sending messages.