Fixed selectOptions and added findAllGroups method.