Add method printmsg