Context Clustering with Complex Environments