Trim out unused boilerplate code
Fix bug where I was comparing regions incorrectly. The only proper way to do it is via the region's identifier.