Why are there two threads going?