Enabled setting the maximum number of concurrent threads. Closes #8.