Debugging & optimizing adaptivity code.