Added if traceEnabled blocks
Added if traceEnabled blocks