Scale the code to do computation for all communities