Changed kmeans partitioning and spacing.