Add nproc variable to template