Adding new region detect script