Added support for index buffers.