Smarter logging; Better output