More intelligent message printing