Need to limit max. number of threads.