Old csync2 code