Fix initialization of tracer heads, and output ordering.