Fix setting the number of threads
VIVTC: Remove pointless duplicate declaration