Fixes #63 allow_groups can take an integer, number of nested groups