Move script deleteZoneMarkers to fucntions.
Some fixes for env.