Added threads and a spring model.