Adding relationships to application_group.