Add tracing support for easier debugging