Parallelize the scratch program.