Better smk grouping