Changed: Calculating the upper bound of the internal array.