Improved debug backtrace tracking.