Added decrement num comments on thread functionality