Join group logic