Fix issue where regions were not being removed, and update formatting.