clenupWhitelist now based on frontierRegion rather than on goal; add threshold parameter