In which function should this go the tracer_XXXXX or the p_trace function?