Detecting regions =D
Dealing with basic level edge cases