Fix for #109. Prevents negative integers being specified for number of i...

...nstances.