Adds ability to automatically detect current location.