Clustering API draft. Probably does not even compile.