Working version for clusters.