Now iterates by block (performance optimization).