Moved original parallel function from ACSL repository.