dirac_trace() now takes three arguments