Added Thread Pools to improve performance