Accept more input types.
Load groups from yaml.