pe_threads improvement.