Implemented stack tracing.