Adding instrumentation and profile matching functions