Add multithread behavior to the clustering.