Tweak to thread pool and safety.