Added support for internal polygons.