Tracing implementation.