Modified Thread Pool so dimention can be specified