Added Polygon functionality and stuff.