Putting the threading into place.

See title.