[Parallel] Scanning the files in a separate thread