Added data clustering method.