Add index passing to ID method.