Move parallel processing to spatial.tools functions.