Allow nested groups

Closes #209