New function to regenerate articles after grouping