Add some codes.

Signed-off-by: Yi Min Zhao <zyimin@cn.ibm.com>