Prevents negative numbers.