This would break if the sequence contains just negative values. Our bad.