Add combination and grouping functions.