Threads working and saving to file.