Added stacktrace information so it can be used in layouts.