Added beginnings of split_blocks function.