Set up work for separate threads.