Added processing for the first part of clusterization