Add state/sync tracing