Update locations and save agent data