maxRenderIndex is now inclusive not exclusive.