Improvements to output of stacktrace