Adding support for index buffer.
Fixes.