Only allow positive thresholds

Fixes #48. 

:pager: @camdez