Handling location changes.