Added printing of messages