Add nested group rules support