Simple function instrumentation