Modified style of post message.
Refactor code.