Updated scripts. Removing duplicated cluster merging code.