Added method buildMessage for build messages.

(from command's variable arg)