Defined "region" variable based on Matt's idea.