Added max index variable for generic_descriptors array