Added GetArrayIndex() method