Allow any number of worker threads for sel_thread. Added optional parameter