Keep track of current location and previous locations.