Added a singleton function for getcluster