Optional threads assignment