Code improvment fixes  for Sync function