This would break if the list contains only negative numbers.