End Group Determination