Added threading toggle back into the demo