Retrieving Clusters from queries, pre-thread synchronization