Check if new group before setting port

- Avoids error for duplicate setting