Switched to using 32 bit indices so larger models are supported.