Add threads and tasks pool