Define minimum number of cores

Issue #163
Merge pull request #169 from vmbrasseur/master

Define minimum number of cores