Remove directive use and replace with a variable checking for printing tracing/logging