Added support to pass specific groups to child elements