private void stat(String[] in) {
		if (controller != null) {
			if (in.length == 1) {
				log("Usage for \"stat\":\n" + 
					"   stat comm: Run the modularity-based community detection algorithm.");
			} else if (in.length >= 2) {
				if (in[1].equals("comm")) {
					log("Running community detection algorithm...");
					long start = System.nanoTime();
					Dendrogram result;
					if (in.length == 3) {
						result = new CommunityTransformer().transform(controller.getModel(),in[2]);
					} else {
						result = new CommunityTransformer().transform(controller.getModel());
					}
					int end = (int)((System.nanoTime() - start)/1000000.0);
					log(result.toString(ProfileQueryEngine.MY_FRIENDS));
					log("Time taken: " + end + " ms");
				}
			}
		} else {
			err("Missing reference to graph controller.");
		}
	}