Added debug file writing for each thread