MA updated SepPopularity with the "right" for loops (to avoid memory blowout)