Added threads and output.