Making the number of container threads configurable.