Modified the findDivs function to avoid detecting division that result from sudden length increases.