Improved way of displaying debugging messages