Add calculations to distribute the dictionary between the threads.