Use generic integer index