printf(), inside threads, can be problematic. Fixed.