Also add the number of galaxies to be treated as a parameter