Fixing the Thread pool centralization from which some mistakes have been done.