Fixed block size calculations so that it now correctly uses the number of threads in the thread pool.