Slight modification to allow 0 procnum.