Changed to using index buffers