[Refactoring] Added instrumentation timer for background analysis.