Turning off writing in kmeans