Add support for numprocs