Add location detection