Better trace formatting