More flexible threads settings