Added support for polygon fences
Remove debug