Cleanup; call update_sites() before API requests.