Instrumenting Code you cannot change