Added vertex array support.