Add merging and clustering steps.