Added block merging.