Created new thread pool, some PEP changes too