Added support for triangles