Fix using the entire int. And add one extra element to avoid rounding issues -> out-of-index errors.