Detecting location
.
.
.