// Added debug function Tools::debug_backtrace()
// Stock performance optimization