Parallelise some part of the script.