Add thread names for easier debugging and profiling