Add print_backtrace to get function call trace