Added bug fix of pull request #27 which caused self._nPro to be disregarded.