Make tracing conditional.