Cluster stats support

Closes #497