R functions for handling multiple processes.