Added part of ThreadPool initializer