Change IndexDatatype to constants