Working on location detection functionality.