Updating message to accept an array of messages.