Added to MAT_fullDistance the variable GROUPS_51 with all the required group indexes.