Logging code  - Attempt to merge similar clusters dynamically