Polygon as a plugin