Added support for faces of more than 4 vertices.