Refactor: Fine tune thread executor.