Made number of selector threads configurable