Added task assignment using polygons