Add stress test and make instrumentation functions weakly defined.