Replaced unsigned value for start because .length method always returns a signed value.