Allow users to customize the number of execution threads.