Now takes the optional numproc parameter for specifying the number of processors.