Simplified the code to verify parallelization without messing with the file system.