Letting the group of the idx and namex optionally.