Added GetMaxNumIndex() method.