Dynamic group

Add support for dynamic group configuration.