Removed a couple of needless checks by making region coordinates unsigned.