Simplified region handling code.

There was a potentially breaking change in here. Can't risk it for now.