Bugfixes
Added save_regions function