Adding tracing. Replace old debug view