Creating insertGroup
Refactor generateGroup to use insertGroup