Fixed blocks algorithm.