Changed how to generate trace_unsafe data