Added exception handler for duplicate group names