Re-added backtraces in a thread-safe manner + Improved them