Improved stack trace printing.