Updated bubbles.times to iterate over a range.