Code Refactor: message updates.

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