Tweaked the findDivs function.