Changing parameters to centroids routine