Add function tracing.