Now one polygon at a time; Moved add layer functions to the init