Add index for temp