Replaced iteration with clearing of regions.
Cleaning up