Added debug tracing.