Dynamic trace v2

Applied the changes proposed in dynamic_trace_v1
Trace levels no longer work with flags