Code Refactor: Message update.

Signed-off-by: Pengcheng Bian <pbian@actuate.com>