Adds threads.