I'd suggest changing `_endpointIdx` to `_endpointIdxs` in accordance with the below comment.