Saving of files moved to a separate thread.