[WIP] Grouping of assignment (finding suitable rules for all at once, ...)