Adding duration log using ThreadLocal and refactor order completion.