Code to update current location